$(function () {
    swal({
        title: "选课失败！",
        text: "当前课程已被选完，\n请选择其他课程",
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: "#e58410",
        confirmButtonText: "重新选课",
        cancelButtonText: "查看课表",
        closeOnCancel: false,
        closeOnConfirm: true
    }, function (isConfirm) {
        if(isConfirm){
            $(".error-back-1").click()
        } else {
            $(".error-back-2").click()
        }
    })
});

